import Vue from 'vue'
import VueLazyload from 'vue-lazyload'
import App from './App.vue'
import store from './store'
import router from './router'
import i18n from './i18n'
import gsap from 'gsap'
import { ScrollToPlugin } from 'gsap/ScrollToPlugin'
import 'normalize.css'
import '@fortawesome/fontawesome-free/css/all.css'
import '@/styles/global.scss'

Vue.config.productionTip = false

gsap.registerPlugin(ScrollToPlugin)

Vue.prototype.$gsap = gsap

Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '/img/error.png',
  loading: '/img/loading.gif',
  attempt: 1,
  lazyComponent: true
})

new Vue({
  store,
  router,
  i18n,
  render: h => h(App)
}).$mount('#app') 